#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @time: 2024/6/26 17:52
# @Author : Admin
import os.path
import sys
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow

from ui.Ui_ApiTestTool import Ui_ApiTestTool
from PyQt5 import QtCore, QtWidgets

uiLog = None
if __name__ == '__main__':
    if not os.path.exists(".\\log"):
        os.makedirs(".\\log")
    # 创建Qt应用程序实例
    app = QApplication(sys.argv)
    # 创建一个QWidget对象，作为主窗口
    window = QMainWindow()
    window.setObjectName("ApiTestTool")
    window.resize(800, 600)
    _translate = QtCore.QCoreApplication.translate
    window.setWindowTitle(_translate("ApiTestTool", "ApiTestTools"))

    centralwidget = QtWidgets.QWidget(window)

    uiTool = Ui_ApiTestTool(centralwidget)
    # uiLog = ui_LogShow()

    # window.addActions(uiLog)

    window.setCentralWidget(centralwidget)
    actionApiTestTools = QtWidgets.QAction(centralwidget)
    actionApiTestTools.setObjectName("actionApiTestTools")
    QtCore.QMetaObject.connectSlotsByName(centralwidget)

    window.show()

    # 运行Qt应用程序
    sys.exit(app.exec_())
